export const echart1 ={

      title: {
        text: 'ECharts 个人案例1'
      },
      tooltip: {},
      legend: {
        data: ['网站统计']
      },
      xAxis: {
    
        data:['用户数', '商品数', '流量人数', '订单数']
      },
      yAxis: {},
      series: [
        {
          name: '网站统计',
          type: 'bar',
          data:[888, 250, 222, 888]
        }
      ]
}


export const echart2={
  tooltip: {
    trigger: 'item'
  },
  legend: {
    top: '5%',
    left: 'center'
  },
  series: [
    {
      name: 'Access From',
      type: 'pie',
      radius: ['40%', '70%'],
      avoidLabelOverlap: false,
      itemStyle: {
        borderRadius: 10,
        borderColor: '#fff',
        borderWidth: 2
      },
      label: {
        show: false,
        position: 'center'
      },
      emphasis: {
        label: {
          show: true,
          fontSize: '40',
          fontWeight: 'bold'
        }
      },
      labelLine: {
        show: false
      },
      data: [
        { value: 1048, name: 'Search Engine' },
        { value: 735, name: 'Direct' },
        { value: 580, name: 'Email' },
        { value: 484, name: 'Union Ads' },
        { value: 300, name: 'Video Ads' }
      ]
    }
  ]
};